


.equ  BOOTSTACK                 ,0x7C00
.equ  BOOTSEGMENT               ,0
.equ  BOOTOFFSET                ,0x7C00


#the end is below the 0xFFFF,so we don't worry about it.We need to fix it later.
.equ  ROOTENTRYSTARTSECTOR      ,19
.equ  ROOTENTRYSECTORNUMBER     ,14
.equ  ROOTENTRYBUFFEROFFSET     ,0x500
.equ  ROOTENTRYBUFFERSEGMENT    ,0
.equ  ROOTENTRYBUFFEREND        ,ROOTENTRYBUFFERSEGMENT*16+ROOTENTRYBUFFEROFFSET+ROOTENTRYSECTORNUMBER*512
.equ  ROOTENTRYBUFFERFULLADDRESS,ROOTENTRYBUFFERSEGMENT*16+ROOTENTRYBUFFEROFFSET

#the end is below the 0xFFFF,so we don't worry about it ,we need fix it later.
.equ  FATBUFFEROFFSET           ,0x500
.equ  FATBUFFERSEGMENT          ,0
.equ  FATSTARTSECTOR            ,1
.equ  FATSECTORNUMBER           ,9
.equ  FATBUFFERFULLADDRESS      ,FATBUFFERSEGMENT*16+FATBUFFEROFFSET
.equ  FATBUFFEREND              ,FATBUFFERFULLADDRESS+FATSECTORNUMBER*512
.equ  SECTOROFFSET              ,31

.equ  LOADERNAMELENGTH          ,11
.equ  LOADERBASEADDRESS         ,0
.equ  LOADEROFFSETADDRESS       ,0x7E00
.equ  SECTORNUMBERPERTRACK      ,18
.equ  DRIVER                    ,0

.equ  LOADERSTACK               ,0x7E00
.equ  KERNELFIRSTBASE           ,0x1000
.equ  KERNELFIRSTOFFSET         ,0
.equ  KERNELFIRSTFULLADDRESS    ,KERNELFIRSTBASE*16+KERNELFIRSTOFFSET
.equ  KERNELSECONDBASE          ,0x10000
.equ  KERNELSECONDOFFSET        ,0
.equ  KERNELSECONDFULLADDRESS   ,KERNELSECONDBASE*16+KERNELSECONDOFFSET
.equ  KERNELNAMELENGTH          ,11
.equ  CGABASE                   ,0xB800
.equ  CGAOFFSET                 ,0

#The CGA 25*80 ,each character use two bytes.
#So it needs 4000bytes to show ,and it only can show 2000 characters.

.equ  CGACHARLIMIT              ,2000

#There are some parameters to be passed to the kernel.So the loader should prepare a buffer to contain it.
.equ  KERNELPARAMETERSBUFFERSEGMENT,0
.equ  KERNELPARAMETERSBUFFEROFFSET, 0x5008
.equ  KERNELPARAMETERSCOUNTOFFSET,  0x5000
.equ  KERNELPARAMETERSNEXTCONTAINER,0x5004
.equ  KERNELPARAMETERSSIZE       ,  32
.equ  KERNELPARAMETERSLABELRAMSIZE,1
.equ  KERNELPARAMETERSLABELRAMMAP,2
.equ  MEMORYCHECKBUFFERSEGMENT,  0
.equ  MEMORYCHECKBUFFEROFFSET,   0x500



